package com.iterator.bean.web.lc.CategoryBean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 一级目录
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public  class CategoryListVO {

    private int id;
    private String name;
    private String keywords;
    private String desc;
    private String iconUrl;
    private String picUrl;
    private String level;
    private List<ChildrenBean> children = new ArrayList<>();
    public void addChild(ChildrenBean childrenBean){
        children.add(childrenBean);
    }

}
